import { axiosMock, delayFn } from '@/services/axiosMock'
import type * as T from '../interface'

axiosMock('default', mock => {
  // 获取原始路由信息
  mock.onPost(`/tmsapi/original_route/listOriginalRoute`).reply(
    delayFn<T.IOriginalRouteInfo>(600, () => {
      return {
        success: true,
        data: {
          originalRouteList: [
            {
              collectDate: '2024-1-30 14:20:56',
              occurDate: '2024-1-30 14:20:56',
              originalRoute: '船名航次：COSCO NETHERLANDS 065E，XXXX',
              status: 0,
            },
            {
              collectDate: '2024-1-30 14:20:56',
              occurDate: '2024-1-30 14:20:56',
              originalRoute: '船名航次：COSCO NETHERLANDS 065E，XXXX',
              status: 0,
            },
            {
              collectDate: '2024-1-30 14:20:56',
              occurDate: '2024-1-30 14:20:56',
              originalRoute: '船名航次：COSCO NETHERLANDS 065E，XXXX',
              status: 0,
            },
            {
              collectDate: '2024-1-30 14:20:56',
              occurDate: '2024-1-30 14:20:56',
              originalRoute: '船名航次：COSCO NETHERLANDS 065E，XXXX',
              status: 0,
            },
            {
              collectDate: '2024-1-30 14:20:56',
              occurDate: '2024-1-30 14:20:56',
              originalRoute: '船名航次：COSCO NETHERLANDS 065E，XXXX',
              status: 0,
            },
            {
              collectDate: '2024-1-30 14:20:56',
              occurDate: '2024-1-30 14:20:56',
              originalRoute: '船名航次：COSCO NETHERLANDS 065E，XXXX',
              status: 0,
            },
            {
              collectDate: '2024-1-30 14:20:56',
              occurDate: '2024-1-30 14:20:56',
              originalRoute: '船名航次：COSCO NETHERLANDS 065E，XXXX',
              status: 0,
            },
          ],
          markStatus: 0,
        },
      }
    }),
  )
})
